import {createRouter, createWebHashHistory} from "vue-router";

const router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{
			path: '/',
			name: 'index',
			redirect: '/data-table'
		},
		{
			path: '/setting',
			name: 'setting',
			component: () => import('@/views/system/setting.vue')
		},
		{
			path: '/data-table',
			name: 'data-table',
			component: () => import('@/views/data/DataView.vue')
		},
		{
			path: '/:pathMatch(.*)*',
			name: 'NotFound',
			component: () => import('@/views/404.vue')
		}
	]
});

export default router
